<!DOCTYPE html>
<html>
<head>
<title></title> <@h.head />
<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
</head>
<body>
	<form action="${path}/user/savePwd" id="fm" method="post" class="definewidth m20">
		<div style="text-align: center;" id="errorMsg"></div>
		<table class="table table-bordered table-hover definewidth m10">
			<tr>
				<td width="10%" class="tableleft">原密码 <span class="required">*</span></td>
				<td><input type="password" name="oldPwd" value=""
					datatype="s6-18" nullmsg="请输入密码！" errormsg="密码至少6个字符,最多18个字符！" />
					<span class="Validform_checktip">请输入原密码</span></td>
			</tr>
			<tr>
				<td class="tableleft">新密码 <span class="required">*</span></td>
				<td><input type="password" name="newPwd" value=""
					datatype="s6-18" nullmsg="请输入密码！" errormsg="密码至少6个字符,最多18个字符！" />
					<span class="Validform_checktip">密码为6~18个字符</span></td>
			</tr>
			<tr>
				<td class="tableleft">密码确认<span class="required">*</span></td>
				<td><input type="password" name="newConfirm" value=""
					recheck="newPwd" datatype="*" nullmsg="请输入密码！" errormsg="您两次输入的密码不一致！" />
					<span class="Validform_checktip">密码为6~18个字符</span></td>
			</tr>
			<tr>
				<td class="tableleft"></td>
				<td>
					<button type="submit" class="btn btn-primary" type="button">保存</button>
				</td>
			</tr>
		</table>
	</form>
	<@h.foot />
<script type="text/javascript">
	var callback = function(data) {
		if(data.status == 0) {
			$("input[type='password']").val("");
		}
		$("#errorMsg").html(data.msg).show();
	};
	$("#fm").validFrom(callback);
</script>
</body>
</html>